package com.webapps.tvprogram.utils;

import com.webapps.tvprogram.ui.MainActivity;

import android.app.Activity;
import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;

public class SettingsHandler {
	public SettingsHandler() {
		loadSettings();
	}
	
	public void loadSettings(){
		SharedPreferences pref = MainActivity.getInstance().getPreferences(Activity.MODE_PRIVATE);
		if(pref==null)
			return;
		//pref.getBoolean(key, defValue)
	}
public void saveSettings(){
		SharedPreferences pref = MainActivity.getInstance().getPreferences(Activity.MODE_PRIVATE);
		Editor editor = pref.edit();
		//editor.putBoolean(arg0, arg1)
		
		editor.commit();
	}
}
